﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;

namespace WpfHostBuilder
{
    public class AppBootStrapper : IHostedService
    {
        public Task StartAsync(CancellationToken cancellationToken)
        {
            var win = new MainWindow();
            win.Show();

            return Task.CompletedTask;
        }

        public Task StopAsync(CancellationToken cancellationToken)
        {
            Trace.TraceInformation("AppBootStrapper.StopAsync()");
            return Task.CompletedTask;
        }
    }
}
